﻿using System;
using Gp.Scripts.Data.Equip;
using Gp.Scripts.Core;

namespace Gp.Scripts.Data.Equip {

    /// <summary>
    /// 武器类型带有的词条
    /// </summary>
    public abstract class WeaponTypePhrase : WeaponPhraseDecorator {
        public static WeaponPhraseDecorator[] Map(WeaponTypeCode code) {
            return code switch {
                WeaponTypeCode.None => null,
                WeaponTypeCode.GreatSword => null,
                WeaponTypeCode.Dagger => null,
                WeaponTypeCode.Stick => null,
                WeaponTypeCode.LightSword => null,
                WeaponTypeCode.Shield => null,
                WeaponTypeCode.Pistol => null,
                WeaponTypeCode.Rife => null,
                WeaponTypeCode.FireSpit => null,
                _ => throw new ArgumentOutOfRangeException(nameof(code), code, null)
            };
        }
    }
}